<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>重置密码</title>
		<!--公用样式-->
		<link rel="stylesheet" type="text/css" href="${re.contextPath}/plugin/common/css/comment.css" />
		<!--页面样式-->
		<link rel="stylesheet" type="text/css" href="${re.contextPath}/plugin/common/css/style.css" />
	</head>
	<body>
		<!--头部-->
		<header class="whitebg">
			<img src="${re.contextPath}/plugin/common/images/2@2x.png" class="logo" alt="" />
		</header>
		<!--容器-->
		<div class="container">
			<!--占位-->
			<div class="headerHight"></div>
			<div class="bgImg">
				<div class="login clearfix">
					<div class="loginLeft fl bluebg center">
						<img src="${re.contextPath}/plugin/common/images/1@2x.png" alt="">
						<div class="white ft20 mt50">欢迎使用信息技术咨询和<br />管理科技服务云平台</div>
					</div>
					<div class="loginRight fr whitebg">
						<ul class="ft26 bold clearfix">
							<li class="fl focus">重置密码</li>
						</ul>
						<div class="tabBox">
							<!--提示-->
							<!-- <div class="codePassword gary">密码尝试次数过多，用户被锁定，联系管理员解锁联系人：王小明   联系电话：85621460</div> -->
							<!--登录-->
							<div class="loginMain">
								<form action="${re.contextPath}/sys/register/updatePassWord" method="post">
									<span class="gary">新密码</span>
									<div>
										<input type="hidden" name="id" id="id" value="${id}" placeholder="请输入新密码" />
										<input type="password" name="passwordOld" id="passwordOld" value="" placeholder="请输入新密码" />
										<div class="gary ft14 fr passTips" style="font-size: 16px;">密码最少为8位，且至少包含大写字母、小写字母，数字、特殊字符(~!@#$%^&*)中的三种</div>
									</div>
									<span class="gary">确认新密码：</span>
									<div>
										<input type="password" name="passwordNew" id="passwordNew" value="" placeholder="请输入确认新密码" />
									</div>
									<div class="codePassword gary clearfix">
										<span class="fr"><a href="${re.contextPath}/login" class="gary">去登录</a></span>
									</div>
									<div>
										<button type="submit" class="white bluebg">确认</button>
									</div>
								</form>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<!--JQ-->
		<script type="text/javascript" charset="utf-8" src="${re.contextPath}/plugin/common/js/jquery-1.8.3.min.js"></script>
		<!--公用样式JS-->
		<script type="text/javascript" charset="utf-8" src="${re.contextPath}/plugin/common/js/comment.js"></script>
		<script type="text/javascript" src="${re.contextPath}/plugin/layui/layui.js"></script>
		<script type="text/javascript" charset="utf-8" src="${re.contextPath}/plugin/tools/tool.js"></script>
		<script>
			//获取验证码
			var clock = '';
			var nums = 60;
			var btn;
			layui.use(['form', 'layer'], function(){
				var layer = layui.layer
				var msg = '${msg}';
				if (msg.trim() != "") {
					layer.msg(msg, {icon: 5, offset: 'auto', anim: 6});
				}
				var message='${message}';
				if(message.trim()!=""){
					layer.msg(message, {icon: 6, offset: 'auto',anim: 6},setTimeout(function(){
							window.location.href="/login";
					},800));
				}
			})
			function sendCode(thisBtn) {
				btn = thisBtn;
				btn.disabled = true; //将按钮置为不可点击
				btn.value = nums + '秒后重新获取';
				clock = setInterval(doLoop, 1000); //一秒执行一次
			}
			function doLoop() {
				nums--;
				if (nums > 0) {
					btn.value = nums + '秒后重新获取';
				} else {
					clearInterval(clock); //清除js定时器
					btn.disabled = false;
					btn.value = '获取验证码';
					nums = 60; //重置时间
				}
			}
		</script>
	</body>
</html>
